# Copyright (c) 2011-2021 Columbia University, System Level Design Group
# SPDX-License-Identifier: Apache-2.0
#-----------------------------------------------------------
# DDR4 C0
#-----------------------------------------------------------

set_property PACKAGE_PIN BG52   [get_ports "c0_ddr4_act_n"]

set_property PACKAGE_PIN BF50   [get_ports "c0_ddr4_adr[0]"]
set_property PACKAGE_PIN BD51   [get_ports "c0_ddr4_adr[1]"]
set_property PACKAGE_PIN BG48   [get_ports "c0_ddr4_adr[2]"]
set_property PACKAGE_PIN BE50   [get_ports "c0_ddr4_adr[3]"]
set_property PACKAGE_PIN BE49   [get_ports "c0_ddr4_adr[4]"]
set_property PACKAGE_PIN BE51   [get_ports "c0_ddr4_adr[5]"]
set_property PACKAGE_PIN BF53   [get_ports "c0_ddr4_adr[6]"]
set_property PACKAGE_PIN BG50   [get_ports "c0_ddr4_adr[7]"]
set_property PACKAGE_PIN BF51   [get_ports "c0_ddr4_adr[8]"]
set_property PACKAGE_PIN BG47   [get_ports "c0_ddr4_adr[9]"]
set_property PACKAGE_PIN BF47   [get_ports "c0_ddr4_adr[10]"]
set_property PACKAGE_PIN BG49   [get_ports "c0_ddr4_adr[11]"]
set_property PACKAGE_PIN BF48   [get_ports "c0_ddr4_adr[12]"]
set_property PACKAGE_PIN BF52   [get_ports "c0_ddr4_adr[13]"]
set_property PACKAGE_PIN BG53   [get_ports "c0_ddr4_adr[14]"]
set_property PACKAGE_PIN BH54   [get_ports "c0_ddr4_adr[15]"]
set_property PACKAGE_PIN BJ54   [get_ports "c0_ddr4_adr[16]"]
set_property PACKAGE_PIN BE54   [get_ports "c0_ddr4_ba[0]"]
set_property PACKAGE_PIN BE53   [get_ports "c0_ddr4_ba[1]"]
set_property PACKAGE_PIN BG54   [get_ports "c0_ddr4_bg"]
set_property PACKAGE_PIN BK54   [get_ports "c0_ddr4_ck_c"]
set_property PACKAGE_PIN BK53   [get_ports "c0_ddr4_ck_t"]
set_property PACKAGE_PIN BH52   [get_ports "c0_ddr4_cke"]
set_property PACKAGE_PIN BP49   [get_ports "c0_ddr4_cs_n[0]"]
set_property PACKAGE_PIN BK48   [get_ports "c0_ddr4_cs_n[1]"]
set_property PACKAGE_PIN BN42   [get_ports "c0_ddr4_dm_dbi_n[0]"]
set_property PACKAGE_PIN BL47   [get_ports "c0_ddr4_dm_dbi_n[1]"]
set_property PACKAGE_PIN BH42   [get_ports "c0_ddr4_dm_dbi_n[2]"]
set_property PACKAGE_PIN BD41   [get_ports "c0_ddr4_dm_dbi_n[3]"]
set_property PACKAGE_PIN BM28   [get_ports "c0_ddr4_dm_dbi_n[4]"]
set_property PACKAGE_PIN BM34   [get_ports "c0_ddr4_dm_dbi_n[5]"]
set_property PACKAGE_PIN BH32   [get_ports "c0_ddr4_dm_dbi_n[6]"]
set_property PACKAGE_PIN BG29   [get_ports "c0_ddr4_dm_dbi_n[7]"]

set_property PACKAGE_PIN BM45   [get_ports "c0_ddr4_dq[0]"]
set_property PACKAGE_PIN BP44   [get_ports "c0_ddr4_dq[1]"]
set_property PACKAGE_PIN BP47   [get_ports "c0_ddr4_dq[2]"]
set_property PACKAGE_PIN BN45   [get_ports "c0_ddr4_dq[3]"]
set_property PACKAGE_PIN BM44   [get_ports "c0_ddr4_dq[4]"]
set_property PACKAGE_PIN BN44   [get_ports "c0_ddr4_dq[5]"]
set_property PACKAGE_PIN BN47   [get_ports "c0_ddr4_dq[6]"]
set_property PACKAGE_PIN BP43   [get_ports "c0_ddr4_dq[7]"]
set_property PACKAGE_PIN BL45   [get_ports "c0_ddr4_dq[8]"]
set_property PACKAGE_PIN BK44   [get_ports "c0_ddr4_dq[9]"]
set_property PACKAGE_PIN BL46   [get_ports "c0_ddr4_dq[10]"]
set_property PACKAGE_PIN BK43   [get_ports "c0_ddr4_dq[11]"]
set_property PACKAGE_PIN BL43   [get_ports "c0_ddr4_dq[12]"]
set_property PACKAGE_PIN BJ44   [get_ports "c0_ddr4_dq[13]"]
set_property PACKAGE_PIN BL42   [get_ports "c0_ddr4_dq[14]"]
set_property PACKAGE_PIN BJ43   [get_ports "c0_ddr4_dq[15]"]
set_property PACKAGE_PIN BK41   [get_ports "c0_ddr4_dq[16]"]
set_property PACKAGE_PIN BG44   [get_ports "c0_ddr4_dq[17]"]
set_property PACKAGE_PIN BG42   [get_ports "c0_ddr4_dq[18]"]
set_property PACKAGE_PIN BH44   [get_ports "c0_ddr4_dq[19]"]
set_property PACKAGE_PIN BH45   [get_ports "c0_ddr4_dq[20]"]
set_property PACKAGE_PIN BG45   [get_ports "c0_ddr4_dq[21]"]
set_property PACKAGE_PIN BG43   [get_ports "c0_ddr4_dq[22]"]
set_property PACKAGE_PIN BJ41   [get_ports "c0_ddr4_dq[23]"]
set_property PACKAGE_PIN BE43   [get_ports "c0_ddr4_dq[24]"]
set_property PACKAGE_PIN BF42   [get_ports "c0_ddr4_dq[25]"]
set_property PACKAGE_PIN BC42   [get_ports "c0_ddr4_dq[26]"]
set_property PACKAGE_PIN BF43   [get_ports "c0_ddr4_dq[27]"]
set_property PACKAGE_PIN BD42   [get_ports "c0_ddr4_dq[28]"]
set_property PACKAGE_PIN BF45   [get_ports "c0_ddr4_dq[29]"]
set_property PACKAGE_PIN BE44   [get_ports "c0_ddr4_dq[30]"]
set_property PACKAGE_PIN BF46   [get_ports "c0_ddr4_dq[31]"]
set_property PACKAGE_PIN BP32   [get_ports "c0_ddr4_dq[32]"]
set_property PACKAGE_PIN BP29   [get_ports "c0_ddr4_dq[33]"]
set_property PACKAGE_PIN BP31   [get_ports "c0_ddr4_dq[34]"]
set_property PACKAGE_PIN BP28   [get_ports "c0_ddr4_dq[35]"]
set_property PACKAGE_PIN BN32   [get_ports "c0_ddr4_dq[36]"]
set_property PACKAGE_PIN BM30   [get_ports "c0_ddr4_dq[37]"]
set_property PACKAGE_PIN BN31   [get_ports "c0_ddr4_dq[38]"]
set_property PACKAGE_PIN BL30   [get_ports "c0_ddr4_dq[39]"]
set_property PACKAGE_PIN BL32   [get_ports "c0_ddr4_dq[40]"]
set_property PACKAGE_PIN BP34   [get_ports "c0_ddr4_dq[41]"]
set_property PACKAGE_PIN BN34   [get_ports "c0_ddr4_dq[42]"]
set_property PACKAGE_PIN BK33   [get_ports "c0_ddr4_dq[43]"]
set_property PACKAGE_PIN BL31   [get_ports "c0_ddr4_dq[44]"]
set_property PACKAGE_PIN BL33   [get_ports "c0_ddr4_dq[45]"]
set_property PACKAGE_PIN BM33   [get_ports "c0_ddr4_dq[46]"]
set_property PACKAGE_PIN BK31   [get_ports "c0_ddr4_dq[47]"]
set_property PACKAGE_PIN BJ34   [get_ports "c0_ddr4_dq[48]"]
set_property PACKAGE_PIN BG35   [get_ports "c0_ddr4_dq[49]"]
set_property PACKAGE_PIN BH34   [get_ports "c0_ddr4_dq[50]"]
set_property PACKAGE_PIN BH35   [get_ports "c0_ddr4_dq[51]"]
set_property PACKAGE_PIN BJ33   [get_ports "c0_ddr4_dq[52]"]
set_property PACKAGE_PIN BF35   [get_ports "c0_ddr4_dq[53]"]
set_property PACKAGE_PIN BG34   [get_ports "c0_ddr4_dq[54]"]
set_property PACKAGE_PIN BF36   [get_ports "c0_ddr4_dq[55]"]
set_property PACKAGE_PIN BF31   [get_ports "c0_ddr4_dq[56]"]
set_property PACKAGE_PIN BH30   [get_ports "c0_ddr4_dq[57]"]
set_property PACKAGE_PIN BJ31   [get_ports "c0_ddr4_dq[58]"]
set_property PACKAGE_PIN BG32   [get_ports "c0_ddr4_dq[59]"]
set_property PACKAGE_PIN BH31   [get_ports "c0_ddr4_dq[60]"]
set_property PACKAGE_PIN BF32   [get_ports "c0_ddr4_dq[61]"]
set_property PACKAGE_PIN BH29   [get_ports "c0_ddr4_dq[62]"]
set_property PACKAGE_PIN BF33   [get_ports "c0_ddr4_dq[63]"]

set_property PACKAGE_PIN BP46   [get_ports "c0_ddr4_dqs_c[0]"]
set_property PACKAGE_PIN BK46   [get_ports "c0_ddr4_dqs_c[1]"]
set_property PACKAGE_PIN BJ46   [get_ports "c0_ddr4_dqs_c[2]"]
set_property PACKAGE_PIN BE46   [get_ports "c0_ddr4_dqs_c[3]"]
set_property PACKAGE_PIN BN30   [get_ports "c0_ddr4_dqs_c[4]"]
set_property PACKAGE_PIN BM35   [get_ports "c0_ddr4_dqs_c[5]"]
set_property PACKAGE_PIN BK35   [get_ports "c0_ddr4_dqs_c[6]"]
set_property PACKAGE_PIN BK30   [get_ports "c0_ddr4_dqs_c[7]"]

set_property PACKAGE_PIN BN46   [get_ports "c0_ddr4_dqs_t[0]"]
set_property PACKAGE_PIN BK45   [get_ports "c0_ddr4_dqs_t[1]"]
set_property PACKAGE_PIN BH46   [get_ports "c0_ddr4_dqs_t[2]"]
set_property PACKAGE_PIN BE45   [get_ports "c0_ddr4_dqs_t[3]"]
set_property PACKAGE_PIN BN29   [get_ports "c0_ddr4_dqs_t[4]"]
set_property PACKAGE_PIN BL35   [get_ports "c0_ddr4_dqs_t[5]"]
set_property PACKAGE_PIN BK34   [get_ports "c0_ddr4_dqs_t[6]"]
set_property PACKAGE_PIN BJ29   [get_ports "c0_ddr4_dqs_t[7]"]

set_property PACKAGE_PIN BH49   [get_ports "c0_ddr4_odt"]
set_property PACKAGE_PIN BH50   [get_ports "c0_ddr4_reset_n"]


# IOSTANDARD
set_property -quiet IOSTANDARD POD12_DCI [get_ports {c0_ddr4_dq[*]}]
set_property -quiet IOSTANDARD SSTL12_DCI [get_ports {c0_ddr4_adr[*]}]
set_property -quiet IOSTANDARD SSTL12_DCI [get_ports {c0_ddr4_ba[*]}]
set_property -quiet IOSTANDARD SSTL12_DCI [get_ports {c0_ddr4_bg}]
set_property -quiet IOSTANDARD LVCMOS12 [get_ports {c0_ddr4_reset_n}]
set_property -quiet IOSTANDARD SSTL12_DCI [get_ports {c0_ddr4_act_n}]
set_property -quiet IOSTANDARD SSTL12_DCI [get_ports {c0_ddr4_cke}]
set_property -quiet IOSTANDARD SSTL12_DCI [get_ports {c0_ddr4_cs_n[*]}]
set_property -quiet IOSTANDARD SSTL12_DCI [get_ports {c0_ddr4_odt}]
set_property -quiet IOSTANDARD POD12_DCI [get_ports {c0_ddr4_dm_dbi_n[*]}]
set_property -quiet IOSTANDARD DIFF_POD12_DCI [get_ports {c0_ddr4_dqs_c[*]}]
set_property -quiet IOSTANDARD DIFF_POD12_DCI [get_ports {c0_ddr4_dqs_t[*]}]
set_property -quiet IOSTANDARD DIFF_SSTL12_DCI [get_ports {c0_ddr4_ck_c}]
set_property -quiet IOSTANDARD DIFF_SSTL12_DCI [get_ports {c0_ddr4_ck_t}]
